package com.xuecheng.search.api;

import com.xuecheng.commons.model.vo.CoursePubIndexVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-search-service")
public interface SearchApi {


    // 根据id查询
    @GetMapping("/course-search/{id}")  // 索引库id是string类型
    public ResponseResult<CoursePubIndexVo> findById(@PathVariable("id")String id);
}
